package com.zeus.thread;

import org.springframework.util.CustomizableThreadCreator;

import java.util.concurrent.ThreadFactory;

/**
 * 自定义线程工厂
 */
public class ZeusCustomizableThreadFactory extends CustomizableThreadCreator implements ThreadFactory {

    public ZeusCustomizableThreadFactory() {
    }

    public ZeusCustomizableThreadFactory(String threadNamePrefix) {
        super(threadNamePrefix);
    }

    public Thread newThread(Runnable runnable) {
        return this.createThread(runnable);
    }
}
